package com.example.shushiyunsst.util.push;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class TimeUtil {
    static SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String getNextDay() {
        Calendar c = Calendar.getInstance();
        c.setTime(new Date());
        c.add(Calendar.DAY_OF_MONTH, +1);     //利用Calendar 实现 Date日期+1天
        Date end_date = c.getTime();
        return sf.format(end_date);
    }

    public static String getNowSuffix() {
        Calendar c = Calendar.getInstance();
        c.setTime(new Date());
        c.add(Calendar.DAY_OF_MONTH, +1);     //利用Calendar 实现 Date日期+1天
        Date end_date = c.getTime();
        return String.valueOf(end_date.getTime());
    }

}
